package com.example.zhunongzonghe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("zn_scenicspot")
public class ZnScenicspot implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 旅游景点表
     */
    @TableId(value = "spot_id", type = IdType.AUTO)
    private Integer spotId;

    /**
     * 所属地区
     */
    @TableField("spot_region")
    private String spotRegion;

    /**
     * 景点名
     */
    @TableField("spot_name")
    private String spotName;

    /**
     * 景点简介
     */
    @TableField("spot_brief")
    private String spotBrief;

    /**
     * 详细地址
     */
    @TableField("spot_location")
    private String spotLocation;

    /**
     * 图片
     */
    @TableField("spot_picture")
    private String spotPicture;

    /**
     * 联系电话
     */
    @TableField("spot_number")
    private String spotNumber;

    /**
     * 开放时间
     */
    @TableField("opening_hours")
    private String openingHours;

    /**
     * 公告信息
     */
    @TableField("announcement")
    private String announcement;

    /**
     * 景点介绍
     */
    @TableField("spot_introduce")
    private String spotIntroduce;

    /**
     * 创建时间
     */
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;


}
